Skip to content

chore: fix library source lint#487

Merged
mrholek merged 2 commits into
mainfrom
chore/lint-src
Jun 29, 2026
Merged

chore: fix library source lint#487
mrholek merged 2 commits into
mainfrom
chore/lint-src

Conversation

@mrholek

@mrholek mrholek commented Jun 29, 2026

Copy link
Copy Markdown
Member

Clears the pre-existing yarn lint debt in the React library source (separate from the docs-examples cleanup already merged on main).

  • Align with eslint-plugin-react-hooks@7, which promoted the react-compiler rules into recommended: the newly-introduced ones (react-hooks/refs, set-state-in-effect, static-components) are set to warn so they don't fail CI on working components; classic rules-of-hooks stays an error.
  • @typescript-eslint/no-unused-expressions configured with allowShortCircuit/allowTernary to match the codebase's side-effect idioms.
  • Fixes: prettier autofix, replace(/g)replaceAll, intentional reflow reads renamed to _reflow, and CTable Item value typing (unknown data + typed _cellProps + as ReactNode at render).

yarn lint now reports 0 errors in the library source. Lib build + unit tests green.

@mrholek mrholek merged commit 991de2b into main Jun 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant